function location(latitude: any, longitude: any) {
    return new Promise((resolve, reject) => {
        uni.request({
            header: {
                "Content-Type": "application/text"
            },
            url: 'https://apis.map.qq.com/ws/geocoder/v1/?location=' + latitude + ',' + longitude + '&key=D3LBZ-TZF3U-JGQVH-GQG56-OROI6-SWFRI',
            success(res) {
                resolve(res)
            },
            fail(err){
                reject(err)
            }
        });
    })
}


export default {

    location

}


